package com.jielihaofeng.springboot.shorturl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Johnnie Wind
 * @since 2021-06-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ShortUrl对象", description="")
public class ShortUrl implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "BIGINT,自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "短串，需要加唯一索引")
    private String shortKey;

    @ApiModelProperty(value = "长地址，也就是需要跳转的原地址")
    private String url;


}
